/**
 * Created by lingyan on 2015/10/23.
 */
function changeClock()
{
    var d = new Date();
    document.getElementById("clock").innerHTML =d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();
}
window.setInterval(changeClock, 1000);